package mspbots.cw.common;

/**
 * mspbots.data.cw.utils.RedisKeys
 *
 * @author <a href="https://github.com/vnobo">Alex bob</a>
 * @date Created by 2020/7/15
 */
public class RedisKeys {
    /**
     * Redis default base key
     */
    private final static String REDIS_KEY_PREFIX = "data:connect-wise:sync:";

    /**
     * Scheduled anchor lock key
     */
    public final static String TENANT_PROPERTIES_REDIS_KEY_PREFIX = REDIS_KEY_PREFIX + "tenant:properties:";

    /**
     * Scheduled anchor lock key
     */
    public final static String TENANT_RUNNING_LOCK_ANCHOR_REDIS_KEY = REDIS_KEY_PREFIX + "anchor:task:running:";

    /**
     * Scheduled anchor lock key
     */
    public final static String TASK_LOCK_ANCHOR_REDIS_KEY = REDIS_KEY_PREFIX + "anchor:task:lock:";

    /**
     * Scheduled anchor lock key
     */
    public final static String ON_OFF_TENANT_TASK_REDIS_KEY = REDIS_KEY_PREFIX + "anchor:task:on-off:";


    /**
     * sync configurations-results anchor time begin
     */
    public final static String TIME_ANCHOR_REDIS_KEY_PREFIX = REDIS_KEY_PREFIX + "anchor:time:";
    /**
     * sync users anchor time begin
     */
    public final static String USERS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "users:";

    /**
     * sync companies anchor time begin
     */
    public final static String COMPANIES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "companies:";

    /**
     * sync contacts anchor time begin
     */
    public final static String CONTACTS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "contacts:";

    /**
     * sync contacts anchor time begin
     */
    public final static String AGREEMENTS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "agreements:";

    /**
     * sync tickets anchor time begin
     */
    public final static String SCHEDULES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "schedules:";


    /**
     * sync tickets anchor time begin
     */
    public final static String TICKETS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "tickets:";

    /**
     * sync tickets anchor time begin
     */
    public final static String REPORT_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "reports:";

    /**
     * sync contacts anchor time begin
     */
    public final static String TIME_ENTRIES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "time-entries:";

    /**
     * sync orders anchor time begin
     */
    public final static String ORDERS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "orders:";

    /**
     * sync orders anchor time begin
     */
    public final static String PURCHASE_ORDERS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "purchase-orders:";

    /**
     * sync contacts anchor time begin
     */
    public final static String INVOICES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "invoices:";

    /**
     * sync activities anchor time begin
     */
    public final static String ACTIVITIES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "activities:";

    /**
     * sync time-sheets anchor time begin
     */
    public final static String TIME_SHEETS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "time-sheets:";

    /**
     * sync surveys-results anchor time begin
     */
    public final static String SURVEYS_RESULTS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "surveys-results:";

    /**
     * sync surveys-results anchor time begin
     */
    public final static String OPPORTUNITIES_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "opportunities:";

    /**
     * sync configurations-results anchor time begin
     */
    public final static String CONFIGURATIONS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "configurations:";

    /**
     * sync configurations-results anchor time begin
     */
    public final static String TEAMS_ANCHOR_REDIS_KEY_PREFIX = TIME_ANCHOR_REDIS_KEY_PREFIX + "teams:";


}
